package com.bizmerce.ebms.cpa.handler;

import com.bizmerce.ebms.cpa.Cpa;

public abstract class AbstractCpaHandler implements CpaHandler {

	private Cpa cpa;
	
	public Cpa getCpa() {
		return cpa;
	}
	
	protected void setCpa(Cpa cpa) {
		this.cpa = cpa;
	}
	
	final class CpaImpl implements Cpa {

		private String cpaId;
		
		private String fromEndPoint;
		
		private String fromPartyId;
		
		private String fromPartyType;
		
		private String fromPartyRole;
		
		private String fromProtocol;
		
		private String service;
		
		private String serviceType;
		
		private String toEndPoint;
		
		private String toPartyId;
		
		private String toPartyType;
		
		private String toPartyRole;
		
		private String toProtocol;

		public String getCpaId() {
			return cpaId;
		}

		protected void setCpaId(String cpaId) {
			this.cpaId = cpaId;
		}

		public String getFromEndPoint() {
			return fromEndPoint;
		}

		protected void setFromEndPoint(String fromEndPoint) {
			this.fromEndPoint = fromEndPoint;
		}

		public String getFromPartyId() {
			return fromPartyId;
		}

		protected void setFromPartyId(String fromPartyId) {
			this.fromPartyId = fromPartyId;
		}

		public String getFromPartyType() {
			return fromPartyType;
		}

		protected void setFromPartyType(String fromPartyType) {
			this.fromPartyType = fromPartyType;
		}

		public String getFromPartyRole() {
			return fromPartyRole;
		}

		protected void setFromPartyRole(String fromPartyRole) {
			this.fromPartyRole = fromPartyRole;
		}

		public String getFromProtocol() {
			return fromProtocol;
		}

		protected void setFromProtocol(String fromProtocol) {
			this.fromProtocol = fromProtocol;
		}

		public String getService() {
			return service;
		}

		protected void setService(String service) {
			this.service = service;
		}

		public String getServiceType() {
			return serviceType;
		}

		protected void setServiceType(String serviceType) {
			this.serviceType = serviceType;
		}

		public String getToEndPoint() {
			return toEndPoint;
		}

		protected void setToEndPoint(String toEndPoint) {
			this.toEndPoint = toEndPoint;
		}

		public String getToPartyId() {
			return toPartyId;
		}

		protected void setToPartyId(String toPartyId) {
			this.toPartyId = toPartyId;
		}

		public String getToPartyType() {
			return toPartyType;
		}

		protected void setToPartyType(String toPartyType) {
			this.toPartyType = toPartyType;
		}

		public String getToPartyRole() {
			return toPartyRole;
		}

		protected void setToPartyRole(String toPartyRole) {
			this.toPartyRole = toPartyRole;
		}

		public String getToProtocol() {
			return toProtocol;
		}

		protected void setToProtocol(String toProtocol) {
			this.toProtocol = toProtocol;
		}
		
		public String toString() {
			return cpaId;
		}
	}
}
